import http from './http'
/**
 * 体检机构
 *
 * @author twt
 * @since 2025-04-14 16:26:44
 */
//user
//查看详细
export const queryById = (id: number) => {
  return http.get(`/medicalInstitutions/${id}`)
}

//查看该机构的套餐
export const queryPackages = (id: number) => {
  return http.get(`/medicalInstitutions/getAllPackage/${id}`)
}

//admin
//删除数据
export const deleteById = (id: number) => {
  return http.delete(`/medicalInstitutions/${id}`)
}
//全部查询
export const queryAll = () => {
  return http.get(`/medicalInstitutions`)
}
//新增数据
export const add = (data: {
  institutionName: string
  address: string
  contactPhone: string
}) => {
  return http.post('/medicalInstitutions', data)
}

